module.exports = {
  "Path Tests #1 (XRP -> XRP) and #2 (XRP -> IOU)": {

    "ledger": {"accounts": {"A1": {"balance": ["100000.0",
                                               "3500/XYZ/G1",
                                               "1200/ABC/G3"],
                                   "trusts": ["5000/XYZ/G1",
                                              "5000/ABC/G3"]},
                            "A2": {"balance": ["10000.0"],
                                   "trusts": ["5000/XYZ/G2",
                                              "5000/ABC/G3"]},
                            "A3": {"balance": ["1000.0"],
                                   "trusts": ["1000/ABC/A2"]},
                            "G1": {"balance": ["1000.0"]},
                            "G2": {"balance": ["1000.0"]},
                            "G3": {"balance": ["1000.0"]},
                            "M1": {"balance": ["1000.0",
                                               "25000/XYZ/G2",
                                               "25000/ABC/G3"],
                                   "offers": [["1000/XYZ/G1",
                                               "1000/XYZ/G2"],
                                              ["10000.0",
                                               "1000/ABC/G3"]],
                                   "trusts": ["100000/XYZ/G1",
                                              "100000/ABC/G3",
                                              "100000/XYZ/G2"]}}},

    "paths_expected": {"T1": {"A1": {"n_alternatives": 0,
                                     "src": "A1",
                                     "send": "10.0",
                                     "dst": "A2",
                                     "via": "XRP"},
                              "A2": {"comment": "Send to non existing account",
                                     "src": "A1",
                                     "send_comment": "malformed error not great for 10.0 amount",
                                     "send": "200.0",
                                     "dst": "rBmhuVAvi372AerwzwERGjhLjqkMmAwxX",
                                     "via": "XRP",
                                     "n_alternatives": 0}},
                       "T2": {"A": {"alternatives": [{"amount": "100.0",
                                                           "paths": [
                                                            ["ABC/G3|$"]
                                                           ]}],
                                    "src": "A2",
                                    "send": "10/ABC/G3",
                                    "dst": "G3",
                                    "via": "XRP",
                                    "debug": 0,
                                    "n_alternatives": 1},
                              "B": {"alternatives": [{"amount": "10.0",
                                                      "paths": [["ABC/G3|$",
                                                                 "ABC/G3|G3"]]}],
                                    "src": "A1",
                                    "send": "1/ABC/A2",
                                    "dst": "A2",
                                    "via": "XRP",
                                    "n_alternatives": 1},
                              "C": {"alternatives": [{"amount": "10.0",
                                                      "paths": [["ABC/G3|$",
                                                                 "ABC/G3|G3",
                                                                 "ABC/A2|A2"]]}],
                                    "src": "A1",
                                    "send": "1/ABC/A3",
                                    "dst": "A3",
                                    "via": "XRP",
                                    "n_alternatives": 1}}}},
 "Path Tests #3 (non-XRP to XRP)": {

    "ledger": {"accounts": {"A1": {"balance": ["1000.0",
                                               "1000/ABC/G3"]},
                            "A2": {"balance": ["1000.0",
                                               "1000/ABC/G3"]},
                            "G3": {"balance": ["1000.0"]},
                            "M1": {"balance": ["11000.0",
                                               "1200/ABC/G3"],
                                   "offers": [["1000/ABC/G3",
                                               "10000.0"]],
                                   "trusts": ["100000/ABC/G3"]}}},

    "paths_expected": {"T3": {"A": {"alternatives": [{"amount": "1/ABC/A1",
                                                      "paths": [["ABC/G3|G3",
                                                                 "XRP|$"]]}],
                                    "src": "A1",
                                    "dst": "A2",
                                    "debug":false,
                                    "send": "10.0",
                                    "via": "ABC"}}}}
}
